gtklabel: Set the correct initial cursor
authorTimm Bäder <mail@baedert.org>
Wed, 9 Jul 2014 22:25:49 +0000 (00:25 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jul 2014 01:24:21 +0000 (21:24 -0400)
Use GDK_XTERM only if the label is really selectable.

https://bugzilla.gnome.org/show_bug.cgi?id=732970

gtk/gtklabel.c

index b3fd1537a098d4fd86d09c682c5edf2954747092..3c64322110b3ac1df8de2f03d79d3fa41e218e5b 100644 (file)
@@ -5198,7 +5198,7 @@ gtk_label_create_window (GtkLabel *label)
     GDK_POINTER_MOTION_MASK      |
     GDK_POINTER_MOTION_HINT_MASK;
   attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
-  if (gtk_widget_is_sensitive (widget))
+  if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
     {
       attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
                                                      GDK_XTERM);